//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03A
TN_Widget.CreateTable([['The Mekons','Magic Bag','Ferndale, MI','Sunday','7/13/2025','7:00 PM','6848220','The-Mekons-7-13-2025'],['Rose City Band','Magic Bag','Ferndale, MI','Tuesday','7/15/2025','7:00 PM','7033188','Rose-City-Band-7-15-2025'],['Cedric Burnside','Magic Bag','Ferndale, MI','Thursday','7/17/2025','7:00 PM','7177851','Cedric-Burnside-7-17-2025'],['7Horse','Magic Bag','Ferndale, MI','Tuesday','7/22/2025','7:00 PM','7143785','7Horse-7-22-2025'],['Satsang','Magic Bag','Ferndale, MI','Saturday','7/26/2025','7:00 PM','7177859','Satsang-7-26-2025'],['Sixpence None the Richer','Magic Bag','Ferndale, MI','Wednesday','8/6/2025','7:00 PM','7199797','Sixpence-None-the-Richer-8-6-2025'],['Age of Madness','Magic Bag','Ferndale, MI','Thursday','8/7/2025','7:00 PM','7085788','Age-of-Madness-8-7-2025'],['Delilah Bon','Magic Bag','Ferndale, MI','Friday','8/8/2025','7:00 PM','7071785','Delilah-Bon-8-8-2025'],['Detroit Improv Festival: 2 Man No Show','Magic Bag','Ferndale, MI','Saturday','8/9/2025','6:30 PM','7256363','Detroit-Improv-Festival--2-Man-No-Show-8-9-2025'],['Kiesza','Magic Bag','Ferndale, MI','Friday','8/15/2025','7:00 PM','7139780','Kiesza-8-15-2025'],['Bearly Dead','Magic Bag','Ferndale, MI','Sunday','8/17/2025','7:00 PM','7177857','Bearly-Dead-8-17-2025'],['JR JR','Magic Bag','Ferndale, MI','Friday','8/22/2025','7:00 PM','7105397','JR-JR-8-22-2025'],['The Smithereens','Magic Bag','Ferndale, MI','Saturday','8/23/2025','7:00 PM','7092994','The-Smithereens-8-23-2025'],['Truckfighters','Magic Bag','Ferndale, MI','Monday','8/25/2025','7:00 PM','7235393','Truckfighters-8-25-2025'],['TWRP','Magic Bag','Ferndale, MI','Tuesday','9/2/2025','7:00 PM','7174935','TWRP-9-2-2025'],['We Are Scientists','Magic Bag','Ferndale, MI','Wednesday','9/10/2025','8:00 PM','7243533','We-Are-Scientists-9-10-2025'],['Who Are These Podcasts?','Magic Bag','Ferndale, MI','Friday','9/12/2025','7:00 PM','7203778','Who-Are-These-Podcasts--9-12-2025'],['James McMurtry','Magic Bag','Ferndale, MI','Sunday','9/14/2025','7:00 PM','7177854','James-McMurtry-9-14-2025'],['Amble','Magic Bag','Ferndale, MI','Monday','9/15/2025','7:00 PM','7120568','Amble-9-15-2025'],['Hallowed Hearts - An Emo Night','Magic Bag','Ferndale, MI','Saturday','9/20/2025','8:00 PM','7105406','Hallowed-Hearts---An-Emo-Night-9-20-2025'],['Blitzkid','Magic Bag','Ferndale, MI','Wednesday','9/24/2025','7:00 PM','7177850','Blitzkid-9-24-2025'],['Martin Sexton','Magic Bag','Ferndale, MI','Thursday','9/25/2025','7:00 PM','7177863','Martin-Sexton-9-25-2025'],['Mustard Plug','Magic Bag','Ferndale, MI','Friday','9/26/2025','7:00 PM','7177855','Mustard-Plug-9-26-2025'],['Southern Culture On The Skids','Magic Bag','Ferndale, MI','Saturday','10/4/2025','7:00 PM','7077558','Southern-Culture-On-The-Skids-10-4-2025'],['Front Line Assembly','Magic Bag','Ferndale, MI','Sunday','10/5/2025','7:00 PM','7105393','Front-Line-Assembly-10-5-2025'],['Gunnar','Magic Bag','Ferndale, MI','Sunday','10/12/2025','7:00 PM','6776254','Gunnar-10-12-2025'],['Miki Berenyi Trio','Magic Bag','Ferndale, MI','Thursday','10/16/2025','7:00 PM','7070786','Miki-Berenyi-Trio-10-16-2025'],['Dice','Magic Bag','Ferndale, MI','Friday','10/17/2025','7:00 PM','7112274','Dice-10-17-2025'],['Iamx','Magic Bag','Ferndale, MI','Sunday','10/26/2025','7:00 PM','7061297','Iamx-10-26-2025'],['Patrick Wolf','Magic Bag','Ferndale, MI','Monday','11/3/2025','7:00 PM','7049860','Patrick-Wolf-11-3-2025'],['Billy Raffoul','Magic Bag','Ferndale, MI','Tuesday','11/4/2025','7:00 PM','7096299','Billy-Raffoul-11-4-2025'],['Boyce Avenue','Magic Bag','Ferndale, MI','Wednesday','11/12/2025','7:00 PM','7138661','Boyce-Avenue-11-12-2025'],['Will Hoge','Magic Bag','Ferndale, MI','Friday','11/21/2025','7:00 PM','7256358','Will-Hoge-11-21-2025'],['Squirrel Nut Zippers','Magic Bag','Ferndale, MI','Wednesday','12/10/2025','7:00 PM','7239046','Squirrel-Nut-Zippers-12-10-2025'],['Imposters In Effect - Beastie Boys Tribute','Magic Bag','Ferndale, MI','Saturday','12/27/2025','7:00 PM','7256359','Imposters-In-Effect---Beastie-Boys-Tribute-12-27-2025']],'Magic Bag','http://www.ticketnetwork.com/ticket/Magic-Bag-events.aspx');